const createExpoWebpackConfigAsync = require("@expo/webpack-config");
// const { withDevServer } = require("@expo/webpack-config/addons");

module.exports = async function (env) {
  // Customize the config before returning it.
  return await createExpoWebpackConfigAsync(env, {
    proxy: {
      "/api": {
        target: "http://localhost:3000",
        changeOrigin: true,
      },
    },
  });
};
